<?php $view->extend('::base.html.php') ?>
<form ng-controller="ListSegmentCtrl" recipient-form action="<?php echo $view['router']->generate('account_campaign_recipient') ?>" method="post" <?php echo $view['form']->enctype($form) ?>>
	<?php
		foreach ($form['lists'] as $value):
	?>
		<div class="recipientListRadio">
			<?php
				echo $view['form']->widget($value/*, array('attr' => array('ng-model' => 'listid'))*/);
				echo $view['form']->Label($value);
			?>
			Recipients: <?php echo $view['actions']->render('RMDAccountBundle:Lists:countSubscribers', array('listid' => $value->getVars()['value'])); ?>
			<a href="#" ng-click="getSegmentForm($event, <?php echo $value->vars['value']; ?>)">Segment</a>
		</div>			
	<?php
		endforeach;
		//ng-bind-html-unsafe="theForm"
		//echo $view['form']->widget($form['lists'][0]) 			
	?>
    <input type="submit" value="Submit"/>
</form>